
*** Set Fixed Effects and Clustering
global fe "courtq"
global clusvar "partyr"

*******************************************
******* Table -  Moves by Source  *********   
*******************************************

*** Set general controls
global exactcontrols "black hisp female blackfemale hispfemale  ageatfiling age2 age3 sh_hhpov med_grossrent rentowed multicase"
global controls "$exactcontrols l1add l2add"  

label var evictjudgment "Eviction Order"


eststo m1l: ivreghdfe  amove2y (evictjudgment=stringency) $controls if samp==1, absorb($fe) cluster($clusvar)

eststo m12: ivreghdfe  ben_amove2y (evictjudgment=stringency) $controls if samp==1, absorb($fe) cluster($clusvar)

eststo m13: ivreghdfe inf_amove2y (evictjudgment=stringency) $controls if samp==1, absorb($fe) cluster($clusvar)

eststo m14: ivreghdfe  amove2y  (evictjudgment=stringency) $controls if beneno_infutor==1, absorb($fe) cluster($clusvar)

eststo m15: ivreghdfe  amove2y   (evictjudgment=stringency) $controls if only_infutor==1, absorb($fe) cluster($clusvar)


label var evictjudgment "Eviction Order"
local numbers "& (1) & (2) & (3) & (4)  \\ \hline"

esttab m1l m12 m13 m14 m15 using ${Inputs}\NY_moves_by_source.tex, label  replace  noconstant nonum b(3) se(3) width(\hsize)  star(* 0.10 ** 0.05 *** 0.01) drop( $controls)   /// 
mtitles("\parbox{0.6in}{\centering \footnotesize \phantom{space} \centering \footnotesize  Move in Either}""\parbox{0.6in}{\centering \footnotesize \phantom{space} \centering \footnotesize  Move in Benefits}" "\parbox{0.6in}{\centering \footnotesize Move in Infutor}" "\parbox{0.6in}{\centering \footnotesize Use Only Benefits Data}" "\parbox{0.6in}{\centering \footnotesize Use Only Infutor Data}")    ///
substitute(\begin{tabular*} \footnotesize\begin{threeparttable}\begin{tabular*}) ///
 postfoot(`"\end{tabular*} \hline  \\ \end{threeparttable} \end{table}"') prefoot("\addlinespace \hline ") posthead("`numbers'")   


